<?php

namespace app\admin\controller\com;

use app\common\controller\AdminController;
use app\Request;
use EasyAdmin\annotation\ControllerAnnotation;
use EasyAdmin\annotation\NodeAnotation;
use think\App;

/**
 * @ControllerAnnotation(title="com_amounts")
 */
class Amounts extends AdminController
{

    use \app\admin\traits\Curd;

    public function __construct(App $app)
    {
        parent::__construct($app);

        $this->model = new \app\admin\model\ComAmounts();
        
    }


    /**
     * 按照订单类型和订单状态展示列表数据
     * Author:William
     */
    public function orderType(Request $request)
    {
        $type = $request->get('type');
        $value = $request->get('value');
        $data = OrderService::orderStatusType($type, $value);
        return json($data);
    }



    
}